{
  //map array 横向对比 增删改查

  let map = new Map()
  let array = []

  map.set('t', 1)
  array.push({'t': 1})
  console.log('map-array', map, array)

  let map_hasKey = map.has('t')
  let arr_hasKey = array.find(item => item.t)

  console.log('map_arr_search_key', map_hasKey, arr_hasKey)

  map.set('t', 2)
  array.forEach(item => item.t ? item.t = 2 : '')
  console.log('map-array', map, array)

  map.delete('t')
  let index = array.findIndex(item => item.t)
  array.slice(index, 1)
  console.log('map-array', map, array)
}

{
  let findkey = {t: 1}
  let set = new Set()
  set.add(findkey)
  let array = []

  array.push({t: 1})

  console.log('set-array', set, array)
  let arr_hasKey = array.find(item => item.t)

  console.log('set_arr_search_key', set.has(findkey), arr_hasKey)

}